package com.ship.dispatch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.dispatch.bean.sy.SyNewRecord;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SyNewRecordMapper extends BaseMapper<SyNewRecord> {

    /**
     * 获取最新一条新闻
     * @return
     */
    @Select("SELECT * FROM sy_new_record ORDER BY create_date desc limit 1")
    SyNewRecord selectNewRecord();
}
